<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
    <%@include file="../AllLoad.jsp" %>
<div class="bjui-pageHeader">
	<form method="post" id="pagerForm" action="${server}/sysBootScreen" data-toggle="ajaxsearch" >
		<ul class="bjui-searchBar">
			<li>
				<label class="trtitle01">标题：</label>
				<input type="text" size="15" name="sysBootScreen.title" class="form-control" value=""/>
			</li>
			<li>
				<label class="trtitle01">状态：</label>
				<select name="sysBootScreen.is_release" data-toggle="selectpicker">
	                <option value="">全部</option>
	                <option value="0">未发布</option>
	                <option value="1">已发布</option>
	            </select>
			</li>
			<li>
			 	<button type="submit" class="btn-default" data-icon="search">查询</button>
			</li>
		</ul>
	</form>
</div>
<div class="bjui-pageContent">
    <div class="bjui-headBar">
        <ul>
			<li class="left"><a href="${server}/jsp/sysBootScreen/add.jsp" class="btn btn-default btn-sm" data-icon="save" data-id="screen-add_view" data-toggle="navtab" data-title="添加广告图" >添加广告图</a></li>
			<li class="left"><a href="${server}/sysBootScreen/del" class="btn btn-default btn-sm" data-icon="trash-o" data-toggle="doajaxchecked" data-type="post" data-confirm-msg="确定要删除选中项吗？" data-idname="ids" data-group="ids">删除广告图</a></li>
       </ul>
    </div>
</div>
<div class="pageContent bjui-resizeGrid" style="top: 29px; bottom: 28px;">
	<table data-toggle="tablefixed" data-layout-h="0" data-nowrap="true">
		<thead>
			<tr align="center">
				<th width="35" style="text-align: center;"><input type="checkbox" class="checkboxCtrl" data-group="ids" data-toggle="icheck"/></th>
				<th>标题</th>
				<th>链接</th>
				<th>图片地址</th>
				<th>排序</th>
				<th>是否发布</th>
				<th width="150">操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${page.result}" var="screen">
				<tr>
					<td  width="35" style="text-align: center;"><input type="checkbox" name="ids" data-toggle="icheck" value="${screen.id}" ></td>
					<td>${screen.title}</td>
					<td>${screen.jump_url}</td>
					<td>${screen.img_url}</td>
					<td>${screen.show_number}</td>
					<td>
						<c:if test="${screen.is_release == 0}">未发布</c:if>
						<c:if test="${screen.is_release == 1}">已发布</c:if>
					</td>
					<td>
						<a href="${server}/sysBootScreen/toUpdate?id=${screen.id}" class="btn btn-green" data-id="screenDetail${screen.id}" data-reload-warn="本页已有打开的内容，确定将刷新本页内容，是否继续？" data-icon="edit" data-toggle="navtab" data-title="编辑-${screen.title}">编辑</a>&nbsp;
						<a class="btn btn-red" data-toggle="doajax" data-type="post" data-confirm-msg="确定要删除该条数据吗？" href="${server}/sysBootScreen/del?ids=${screen.id}">删除</a>
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</div>
<%@include file="../page.jsp" %>